﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    [MetadataType(typeof(Sys_SmtpServers_Metadata))]
    [DisplayName("SMTP服务器")]
    public partial class Sys_SmtpServers
    {
        public Sys_SmtpServers()
        {
            this.Id = Guid.NewGuid();
        }

        public class Sys_SmtpServers_Metadata
        {
            [ScaffoldColumn(false)]
            public System.Guid Id { get; set; }

            [DisplayName("域名或IP")]
            [Required]
            public object Host { get; set; }

            [DisplayName("端口")]
            [Required]
            [DefaultValue(25)]
            public object Port { get; set; }

            [DisplayName("用户名")]
            [Required]
            public object userName { get; set; }

            [DisplayName("密码")]
            [Required]
            public object password { get; set; }

            [DisplayName("是否启用")]
            [Required]
            [DefaultValue(false)]
            public object enable { get; set; }
        }
    }
}
